<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>v-if和v-show的使用</title>
		<script src="vue.js"></script>
	</head>

	<body>
		<div id="app">
			<div v-if="isShow" style="background-color: aqua;">我出来了</div>
			<button @click="isShow=!isShow">显示/隐藏</button>
		</div>

		<script>
			var vm = new Vue({
				el: '#app',
				data: {
					isShow: true,
				}
			})
		</script>
	</body>

</html>